package com.len.entity;

import com.len.entity.base.FlexBaseEntity;
import com.len.validator.group.AddGroup;
import com.len.validator.group.UpdateGroup;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;


@Data
@Table(value = "sys_role")
@EqualsAndHashCode(callSuper = false)
public class SysRole extends FlexBaseEntity {

    @NotEmpty(message = "角色名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String roleName;

    private String remark;
}